package cn.com.dhc.danlu.activity;

import android.annotation.SuppressLint;
import android.os.Bundle;
import android.view.MotionEvent;

import cn.com.dhc.danlu.R;
import cn.com.dhc.danlu.util.CommonUtils;

@SuppressLint("Registered")
public class TestActivity extends BaseActivity {


    public static void main(String[] args) {
        String reason = "其他原因(我只是不想买了阿萨德阿萨德)";
        System.out.println(reason.substring(reason.indexOf("(") + 1, reason.length() - 1));
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.test_layout);
    }

    // activityA finish 之前执行动画 然后在调用finish
    @Override
    public void finish() {
        super.finish();
    }

    @Override
    protected String getActivityTitle() {
        return null;
    }

    @Override
    public boolean dispatchTouchEvent(MotionEvent ev) {
        CommonUtils.hideSoftInputForce(this);
        return super.dispatchTouchEvent(ev);
    }
}
